package com.software.chemistry.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

@Entity
public class SearchHistory {

    private String userId;
    private String searchName;
    @Id
    private String historyTime;


    public SearchHistory() {
    }

    public SearchHistory(String userId, String searchName, String historyTime) {
        this.userId = userId;
        this.searchName = searchName;
        this.historyTime = historyTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    public String getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(String historyTime) {
        this.historyTime = historyTime;
    }

    @Override
    public String toString() {
        return "SearchHistory{" +
                "userId='" + userId + '\'' +
                ", searchName='" + searchName + '\'' +
                ", historyTime=" + historyTime +
                '}';
    }
}
